﻿@model iDMS.Models.Manufacturer

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Manufacturer</legend>

        @Html.ValidationSummary()
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
          @*  @Html.ValidationMessageFor(model => model.Name)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Adress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Adress)
         @*   @Html.ValidationMessageFor(model => model.Adress)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
           @* @Html.ValidationMessageFor(model => model.City)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PostCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PostCode)
           @* @Html.ValidationMessageFor(model => model.PostCode)*@
        </div>

        <div class="editor-label">
            Country:
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.CountryID, (IEnumerable<SelectListItem>)ViewBag.Countries)
          @*  @Html.ValidationMessageFor(model => model.CountryID)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.isGeneric)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.isGeneric)
          @*  @Html.ValidationMessageFor(model => model.isGeneric)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Url)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Url)
       @*     @Html.ValidationMessageFor(model => model.Url)*@
        </div>

        <p>
            <input type="submit" value="Submit" />
        </p>
    </fieldset>
}